package com.mic.yzzn.plc.core.control.datastructure;

import com.mic.yzzn.plc.common.instructions.basic.PLCRequestInstruction;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

/**
 * 表示 PLC 采控配置信息的类
 */
abstract public class PLCStationConfig implements Serializable
{

	/** 指令数组 */
	protected ArrayList<PLCRequestInstruction> instructionList;
	/** 站号 */
	protected String locationNumber;
	/** 周期任务时间间隔 */
	protected long flashTime;
	/** XML配置信息hash */
	public String XMLFieldHashCode;
	/** 更新的时间戳 */
	public Date updateTime;
	/** 是否过期 */
	public boolean overdue;
	/** 采集器最大实时任务数量 */
	public int maxRealtimeMission = 50;
	
	public String id() {
		return null;
	}

	@Override
	public String toString()
	{
		return null;
	}
	
	// Getter And Setter
	
	public ArrayList<PLCRequestInstruction> getInstructionList()
	{
		return instructionList;
	}
	
	public long getFlashTime()
	{
		return flashTime;
	}
	
	public void setInstructionList(ArrayList<PLCRequestInstruction> instructionList)
	{
		this.instructionList = instructionList;
	}
	
	public String getLocationNumber()
	{
		return locationNumber;
	}
	
	public void setLocationNumber(String locationNumber)
	{
		this.locationNumber = locationNumber;
	}
	
	public void setFlashTime(long flashTime)
	{
		this.flashTime = flashTime;
	}
}
